$OpenBSD: patch-test_Makefile,v 1.1 2017/04/15 20:46:16 sthen Exp $
--- test/Makefile.orig	Fri Apr 14 14:43:53 2017
+++ test/Makefile	Fri Apr 14 14:44:39 2017
@@ -16,32 +16,32 @@ test :
 	$(MAKE) -C lib test
 
 fake_user : fake_user.o
-	${CC} $^ -o $@ ../lib/libmosquitto.so.${SOVERSION}
+	${CC} $^ -o $@ ${WRKLIB}
 	#${CC} $^ -o $@ -lmosquitto
 
 fake_user.o : fake_user.c
 	${CC} $(CFLAGS) -c $< -o $@
 
 msgsps_pub : msgsps_pub.o
-	${CC} $^ -o $@ ../lib/libmosquitto.so.${SOVERSION}
+	${CC} $^ -o $@ ${WRKLIB}
 
 msgsps_pub.o : msgsps_pub.c msgsps_common.h
 	${CC} $(CFLAGS) -c $< -o $@
 
 msgsps_sub : msgsps_sub.o
-	${CC} $^ -o $@ ../lib/libmosquitto.so.${SOVERSION}
+	${CC} $^ -o $@ ${WRKLIB}
 
 msgsps_sub.o : msgsps_sub.c msgsps_common.h
 	${CC} $(CFLAGS) -c $< -o $@
 
 packet-gen : packet-gen.o
-	${CC} $^ -o $@ ../lib/libmosquitto.so.${SOVERSION}
+	${CC} $^ -o $@ ${WRKLIB}
 
 packet-gen.o : packet-gen.c
 	${CC} $(CFLAGS) -c $< -o $@
 
 qos : qos.o
-	${CC} $^ -o $@ ../lib/libmosquitto.so.${SOVERSION}
+	${CC} $^ -o $@ ${WRKLIB}
 
 qos.o : qos.c
 	${CC} $(CFLAGS) -c $< -o $@
